﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using FarseerPhysics.Factories;

namespace D2DEngine.Physics
{
    public static class D2DPhysicsHelper
    {        

        /*
        public static Vertices CreateVerticesFromTexture(Texture2D texture)
        {
            uint[] data = new uint[texture.Width * texture.Height];

            texture.GetData(data);

        }

        public static void InitGeometry(D2DActor actor, float mass)
        {
            D2DSpriteComponent sprite = actor.GetComponent<D2DSpriteComponent>();
            uint[] data = new uint[sprite.Texture.Width * sprite.Texture.Height];

            sprite.Texture.GetData(data);

            //sprite.Origin = vertices.GetCentroid();

        }

        public static void InitTextureGeometry(D2DActor actor, float mass)
        {
            D2DGraphicsComponent sprite = actor.GetComponent<D2DGraphicsComponent>();
        }
         */

    }
}
